<!--#include file="../main/top.asp" -->
<%
if str_query("page")="" then
	sql = "select * from cw_operations order by editTime desc"
else
	sql = "select * from cw_operations where "&request("field_name")&" like '%"&request("search_text")&"%' order by editTime desc"
end if
page_size = 20
paper = pageturner_handle(sql,"operId",page_size)
set rs = paper(0) 
%>
<div class="function_title"><span class="t2"><img src="../images/dqwz.gif">当前位置：操作管理</span></div>
<div class="function_content">

<div class="addItem"><img src="../images/insert_icon.gif"><a href="adminOperationsAdd.asp">添加操作</a>  
<img src="../images/edit_icon.png"><a href="../adminUsers/adminUsersList.asp">用户管理</a>  
<img src="../images/edit_icon.png"><a href="../adminRoles/adminRolesList.asp">角色管理</a>
<img src="../images/edit_icon.png"><a href="../adminOperations/adminOperationsList.asp">操作管理</a>
</div>

<div class="search_form" id="search_form">
<form action="adminOperationsList.asp" method="get" name="search_form" id="search_form" >
<select name="field_name" id="field_name">
<%
if request("field_name")="operName" then
	echo "<option value='operName' selected='selected'>操作名称</option>" 
else
	echo "<option value='operName'>操作名称</option>" 
end if
if request("field_name")="operUrl" then
	echo "<option value='operUrl' selected='selected'>操作URL</option>" 
else
	echo "<option value='operUrl'>操作URL</option>" 
end if
%>
</select>
<input type="text" name="search_text" id="search_text" value="<%=request("search_text")%>">
<input type="submit" value="搜索" class="button">
</form>
</div>

<form method="post" name="adminOperationsDel" id="adminOperationsDel" action="adminOperationsDel.asp" >
<input type="submit" name="submit" value="删除选中记录" class="button" onClick="return p_del();"/>
<%=pageturner_show(paper(1),paper(2),paper(3),page_size,5)%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="listTable">
  <tr class="title_line">
    <td><input type="checkbox" name="select_all" id="select_all" onClick="checkAll()" class="input_noborder"></td>
    <td>序号</td>
    <td>操作名称</td>
    <td>操作URL</td>
    <td>备注</td>
    <td>添加时间</td>
    <td>更新时间</td>
    <td>操作</td>
  </tr>
<%
i = 1
'循环显示出所有管理员信息
do while not rs.eof
%>
  <tr>
  	<td><input type="checkbox" name="id" id="allid" value="<%=rs("operId")%>" class="input_noborder"></td>
    <td><%=i%></td>
    <td><%=rs("operName")%></td>
    <td><%=rs("operUrl")%></td>
    <td><%=rs("operRemark")%></td>
    <td><%=rs("addTime")%></td>
    <td><%=rs("editTime")%></td>
    <td><a href="adminOperationsEdit.asp?id=<%=rs("operId")%>">修改</a> <a href="adminOperationsDel.asp?id=<%=rs("operId")%>" onClick="return p_del();">删除</a></td>
  </tr>
<%
i=i+1
rs.movenext
loop
rs.close : set rs=nothing
conn.close : set conn=nothing
%>
</table>
<%=pageturner_show(paper(1),paper(2),paper(3),page_size,5)%>
<input type="submit" name="submit" value="删除选中记录" class="button" onClick="return p_del();"/>
</form>
</div>
<!--#include file="../main/bottom.asp" -->
